package com.yy.bolg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动类
 * @author enmaoFu
 * @date 2024-11-14
 */
@SpringBootApplication
@EnableScheduling // 启用定时任务
public class ElectricManageServiceApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(ElectricManageServiceApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ElectricManageServiceApplication.class, args);
    }
}
